package com.lzh.shijicloudstack.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lzh.shijicloudstack.model.entity.CookbookProcess;

import java.util.List;


/**
 * 菜谱制作流程数据库访问层
 *
 * @author luzhiheng
 * @since 2025-01-12
 */
public interface CookbookProcessMapper extends BaseMapper<CookbookProcess> {

    /**
     * 根据菜谱id查询菜谱制作流程
     *
     * @param cookbookId 菜谱ID
     * @return List<CookbookProcess>
     */
    List<CookbookProcess> selectByCookbookId(Long cookbookId);

    /**
     * 根据菜谱id删除菜谱制作流程
     *
     * @param cookbookId 菜谱ID
     */
    void deleteByCookbookId(Long cookbookId);
}

